﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Common/Master/FrameMain.Master"
    AutoEventWireup="true" CodeBehind="NewsDetail.aspx.cs" validateRequest="false" Inherits="FortuneHeaven.Admin.Pages.CMS.NewsDetail" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link  type="text/css"  rel="Stylesheet" href="../../Content/CSS/newsdetail.css"/>
    <script charset="utf-8" src="../../ThirdParty/kindeditor.js"></script>
    <script>
        function AlertCancle() {
            if (confirm("确实取消吗?")) {
                return true;
            }
            else {
                return false;
            }
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <table cellspacing="1" cellpadding="0" border="0" width="960" class="askfra">
        <tbody>
            <tr>
                <th class="atit" colspan="2">
                    <%= showtitle%>
                </th>
            </tr>
            <tr>
                <td class="bg">
                    文章标题
                </td>
                <td class="boxtit">
                    <asp:TextBox ID="txtTitle" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                        ControlToValidate="txtTitle" ErrorMessage="*请填写标题" SetFocusOnError="True"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td style="vertical-align: top;" class="bg">
                    文章内容
                </td>
                <td>
                    <div style="width: 99.8%;">
                        <textarea id="editor_id" name="content" style="width: 700px; height: 300px;"><%=content %></textarea>
                    </div>
                </td>
            </tr>
            <tr>
                <td class="bg">
                </td>
                <td>
                    <ul class="abtn">
                        <li>
                            <asp:Button runat="server" ID="Button1" Text="发表" OnClick="Save" CssClass="buttoncss" /></li>
                        <li>
                            <asp:Button runat="server" ID="Button2" Text="取消" OnClick="CancelSave" CssClass="buttoncss"
                                OnClientClick="return AlertCancle();" /></li>
                    </ul>
                </td>
            </tr>
        </tbody>
    </table>
    <script>
        KE.show({
            id: 'editor_id',
            allowUpload: true, //允许上传图片
             urlType:'domain',
             imageUploadJson: '<%=Page.ResolveUrl("~/Pages/CMS/ImageHandler.ashx")%>' //服务端上传图片处理URI
        });
    </script>
</asp:Content>
